<extend name="Public:layout"/>
<block name="content">
    <div class="panel admin-panel">
        <div class="panel-head"><strong class="icon-reorder"> 站点页面</strong></div>
        <table class="table table-hover text-center">
            <thead>
            <tr>
                <th>页面</th>
                <th>banner</th>
                <th>缩略图</th>
                <th>内容摘要</th>
                <th width="310">操作</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="pages" key="key" item="vo">
                <tr>
                    <td>{$vo.page}</td>
                    <td>
                        <notempty name="vo.banner">
                            <img src="{$vo.banner}" style="max-width:100px;"/>
                            <else/>
                            无
                        </notempty>
                    </td>
                    <td>
                        <notempty name="vo.thumb">
                            <img src="{$vo.thumb}" style="max-width:100px;"/>
                            <else/>
                            无
                        </notempty>
                    </td>
                    <td>{$vo.content|more_hidden=0,30}</td>
                    <td>
                        <div class="btn-group">
                            <a class="btn btn-primary" href="{:U('setPage', 'page='.$key)}"><span class="icon-edit"></span> 修改</a>
                        </div>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
    </div>
</block>